package com.itr.kbm.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

public class Kopeg {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3L;
	private String nik;
	private String nama;
	private double simpanan;
	private double angsuran;
	private double lainnya;
	private double total;
	private Date awal;
	private Date akhir;
	private String keterangan;
	private String validate;
	private String kodeKopeg;
	private String namaKopeg;
	
	private String subtype;
	
	// Kopeg and Merge
	public Kopeg(String nik, String nama, double simpanan, double angsuran, double lainnya, double total, Date awal, Date akhir, String keterangan, String validate, String kodeKopeg, String namaKopeg) {
		this.nik = nik;
		this.nama = nama;
		this.simpanan = simpanan;
		this.angsuran = angsuran;
		this.lainnya = lainnya;
		this.total = total;
		this.awal = awal;
		this.akhir = akhir;
		this.keterangan = keterangan;
		this.validate = validate;
		this.kodeKopeg = kodeKopeg;
		this.namaKopeg = namaKopeg;
	}
	
	// Delimit Angsuran
	public Kopeg(String nik, String subtype, Date akhir, String nama) {
		this.nik = nik;
		this.subtype = subtype;
		this.akhir = akhir;
		this.nama = nama;		
	}
	
	// Delimit Simpanan
	public Kopeg(String nik, String subtype, Date awal, String nama, double simpanan) {
		this.nik = nik;
		this.subtype = subtype;
		this.awal = awal;
		this.nama = nama;
		this.simpanan = simpanan;	
	}
	
	// Perubahan Angsuran
	public Kopeg(String nik, String subtype, Date awal, Date akhir, String kodeKopeg, String namaKopeg, double angsuran, String nama) {
		this.nik = nik;
		this.subtype = subtype;
		this.awal = awal;
		this.akhir = akhir;
		this.kodeKopeg = kodeKopeg;
		this.namaKopeg = namaKopeg;
		this.angsuran = angsuran;
		this.nama = nama;
		
	}
	
	// Perubahan Simpanan
	public Kopeg(String nik, String subtype, Date awal, Date akhir, String kodeKopeg, double simpanan) {
		this.nik = nik;
		this.subtype = subtype;
		this.awal = awal;
		this.akhir = akhir;
		this.kodeKopeg = kodeKopeg;
		this.simpanan = simpanan;
	}
	
	// Angsuran Lain Lain
	public Kopeg(String nik, String nama, String kodeKopeg, String namaKopeg, double lainnya) {
		this.nik = nik;
		this.nama = nama;
		this.kodeKopeg = kodeKopeg;
		this.namaKopeg = namaKopeg;
		this.lainnya = lainnya;
	}
	
	// Compare Angsuran dan Simpanan Tetap
	public Kopeg(String nik, Date awal, Date akhir, double angsuran) {
		this.nik = nik;
		this.awal = awal;
		this.akhir = akhir;
		this.angsuran = angsuran;
	}
	
	// Compare Angsuran Lain Lain
	public Kopeg(String nik, Date awal, double lainnya) {
		this.nik = nik;
		this.awal = awal;
		this.lainnya = lainnya;
	}

	public String getNik() {
		return nik;
	}
	public void setNik(String nik) {
		this.nik = nik;
	}
		

	public String getNama() {
		return nama;
	}
	public void setNama(String nama) {
		this.nama = nama;
	}
	

	public double getSimpanan() {
		return simpanan;
	}
	public void setSimpanan(double simpanan) {
		this.simpanan = simpanan;
	}
	

	public double getAngsuran() {
		return angsuran;
	}
	public void setAngsuran(double angsuran) {
		this.angsuran = angsuran;
	}
	

	public double getLainnya() {
		return lainnya;
	}
	public void setLainnya(double lainnya) {
		this.lainnya = lainnya;
	}
	

	public double getTotal() {
		return total;
	}
	public void setTotal(double total) {
		this.total = total;
	}
		

	public Date getAwal() {
		return awal;
	}
	public void setAwal(Date awal) {
		this.awal = awal;
	}
	

	public Date getAkhir() {
		return akhir;
	}
	public void setAkhir(Date akhir) {
		this.akhir = akhir;
	}
	

	public String getKeterangan() {
		return keterangan;
	}
	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}

	public String getValidate() {
		return validate;
	}
	public void setValidate(String validate) {
		this.validate = validate;
	}
	
	public String getKodeKopeg() {
		return kodeKopeg;
	}
	public void setKodeKopeg(String kodeKopeg) {
		this.kodeKopeg = kodeKopeg;
	}
	
	public String getNamaKopeg() {
		return namaKopeg;
	}
	public void setNamaKopeg(String namaKopeg) {
		this.namaKopeg = namaKopeg;
	}
	
	public String getSubtype() {
		return subtype;
	}
	public void setSubtype(String subtype) {
		this.subtype = subtype;
	}
}
